<!DOCTYPE html>
<html>
<head>
  <style>
    #vis.vega-embed {
      width: 100%;
      display: flex;
    }

    #vis.vega-embed details,
    #vis.vega-embed details summary {
      position: relative;
    }
  </style>
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega@5"></script>
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega-lite@5.15.1"></script>
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script>
</head>
<body>
  <div id="vis"></div>
  <script>
    (function(vegaEmbed) {
      var spec = {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300, "strokeWidth": 0}}, "layer": [{"mark": {"type": "bar", "color": "#81c01e"}, "encoding": {"x": {"axis": {"labelAngle": 0, "title": null}, "field": "Meal Type", "sort": "-y", "type": "nominal"}, "y": {"axis": {"grid": false}, "field": "Number of Likes", "type": "quantitative"}}}, {"mark": {"type": "text", "align": "center", "baseline": "middle", "color": "#81c01e", "dy": -10, "fontSize": 14, "fontWeight": 600}, "encoding": {"text": {"field": "Number of Likes", "type": "quantitative"}, "x": {"axis": {"labelAngle": 0, "title": null}, "field": "Meal Type", "sort": "-y", "type": "nominal"}, "y": {"field": "Number of Likes", "type": "quantitative"}}}], "data": {"name": "data-969aa808d918a0699262e0ff279e8316"}, "height": 300, "width": 600, "$schema": "https://vega.github.io/schema/vega-lite/v5.15.1.json", "datasets": {"data-969aa808d918a0699262e0ff279e8316": [{"Meal Type": "Pizza", "Number of Likes": 120}, {"Meal Type": "Burger", "Number of Likes": 95}, {"Meal Type": "Pasta", "Number of Likes": 80}, {"Meal Type": "Sushi", "Number of Likes": 60}, {"Meal Type": "Salad", "Number of Likes": 50}, {"Meal Type": "Steak", "Number of Likes": 70}, {"Meal Type": "Tacos", "Number of Likes": 90}, {"Meal Type": "Ice Cream", "Number of Likes": 110}, {"Meal Type": "Curry", "Number of Likes": 40}, {"Meal Type": "Sandwich", "Number of Likes": 75}]}};
      var embedOpt = {"mode": "vega-lite"};

      function showError(el, error){
          el.innerHTML = ('<div style="color:red;">'
                          + '<p>JavaScript Error: ' + error.message + '</p>'
                          + "<p>This usually means there's a typo in your chart specification. "
                          + "See the javascript console for the full traceback.</p>"
                          + '</div>');
          throw error;
      }
      const el = document.getElementById('vis');
      vegaEmbed("#vis", spec, embedOpt)
        .catch(error => showError(el, error));
    })(vegaEmbed);

  </script>
</body>
</html>